package view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.rsl.expertcomment.app.R;

/**
 * Created by Administrator on 2014/12/11.
 */
public class TitleItem extends LinearLayout {
    private TextView titleTextView;
    public TitleItem(Context context) {
        super(context);
    }

    public TitleItem(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater inflater = (LayoutInflater) context
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        inflater.inflate(R.layout.item_title,this);
        titleTextView = (TextView) findViewById(R.id.titleTextView);


    }
    /**
     * 设置显示的文字
     */
    public void setTextViewText(String text) {
        titleTextView.setText(text);
    }
}
